"""
@name : 11-5 homwork.py
@author : hj
@projectname: CJH
"""

import random

give_set = {"小明", "小何", "小王", "小赵", "小宋", "小陈", "小红", "小张", "小李"}
receive_set = {"小明", "小何", "小王", "小赵", "小宋", "小陈", "小红", "小张", "小李"}
receive_set1 = {''}

for i in give_set:
    receive_set.remove(i)  # 从接收列表中删除送礼物的人
    # 还未收到礼物的人
    receive_set2 = receive_set - receive_set1
    # 随机抽取一个收礼物的人
    j = random.choice(list(receive_set2))
    print(f"{i}送礼物给{j}")
    receive_set.add(i)  # 还原接收列表中的人
    receive_set1.add(j)  # 记录已收到礼物的人

